import java.util.ArrayList;
import java.util.EventObject;
import java.util.Iterator;
import java.util.List;

public class Joystick extends Thread{
	
	private int flag;
	private int time;
	private short value; 
	private int type;
	private int number;
	

	public Joystick(){
		
		this.time=0;
		this.value=0;
		this.type=0;
		this.number=0;
		this.flag=0;
	}

	public native void eventos();
	static {
		System.loadLibrary("joystick");
	}
	
	public int getTime(){
		return this.time;
	}

	public short getValue(){
		return this.value;
	}
	
	public int getType(){
		return this.type;
	}

	public int getNumber(){
		return this.number;
	}

	public int getFlag()
	{
		return this.flag;
	}
	public void run(){		
		this.eventos();		
	}
	
}